package com.sky.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * 套餐和菜肴
 *
 * @author MK
 * @projectName: sky-take-out
 * @package: com.sky.entity
 * @className: SetmealAndDish
 * @author: Eric
 * @description: TODO
 * @date: 2023/9/22 19:48
 * @version: 1.0
 * @date 2023/09/22
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SetmealAndDish {
    private Long id;

    //分类id
    private Long categoryId;

    //套餐名称
    private String name;

    //套餐价格
    private BigDecimal price;

    //状态 0:停用 1:启用
    private Integer status;

    //描述信息
    private String description;

    //图片
    private String image;

    //套餐菜品关系
    private List<SetmealDish> setmealDishes = new ArrayList<>();

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    private Long createUser;

    private Long updateUser;
}
